package com.deluxelx.rmo.user.service.rpc;

import com.deluxelx.rmo.user.api.dto.UserPostDto;
import com.deluxelx.rmo.user.api.rpc.UserPostService;
import com.deluxelx.rmo.user.mapper.UserPostMapper;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService
public class UserPostServiceImpl implements UserPostService {

    @Resource
    private UserPostMapper userPostMapper;

    @Override
    public UserPostDto getUserPostInfo(Long userId) {
        return userPostMapper.queryUserPostByUserId(userId);
    }
}
